package com.woniu113.junk.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu113.junk.order.dto.AllGoodsOrderDTO;
import com.woniu113.junk.order.dto.GoodsOrderDTO;
import com.woniu113.junk.order.model.GoodsOrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu113.junk.order.param.AddGoodsOrderParam;
import com.woniu113.junk.order.param.FindGoodsByAdminParam;
import com.woniu113.junk.order.param.FindGoodsOrderParam;
import com.woniu113.junk.order.param.FindGoodsParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 蜡笔没了小新
 * @since 2024年10月16日
 */
public interface GoodsOrderInfoService extends IService<GoodsOrderInfo> {
    void buy(AddGoodsOrderParam param);
    Page<GoodsOrderInfo> findByUserId(FindGoodsOrderParam param);
    GoodsOrderDTO findByUser(FindGoodsParam param);
    AllGoodsOrderDTO findByAdmin(FindGoodsByAdminParam param);
}
